| pokeDataset {GCDkit} | R Documentation |
Saves the current dataset into memory so that it can be later re-stored.
pokeDataset(which.dataset=NULL,
par.list="WR,WRanh,milli,labels,filename,groups,grouping,init,age,leg.pch,leg.col",
overwrite.warn=TRUE)
which.dataset |
character; a name of the stored dataset. |
par.list |
list of global variables to be stored. |
overwrite.warn |
logical, warn if a dataset is going to be rewritten in ' |
This function stores the global variables specified by par.list, typically
'WR', 'WRanh', 'milli' 'labels',
'filename', 'groups' and 'grouping'
into the list 'WRCube'.
If no which.dataset is provided upon the call, it can be typed in or
selected from the list of existing datasets.
Please note that 'pokeDataset' is also invoked when a new dataset
is loaded into memory using the functions 'loadData'
or 'accessVar'. In the former case it is stored under
the name of the file, in the latter under the variable name.
If such a name already exists in 'WRCube', a time stamp is attached.
For restoring the stored variables serve functions 'peekDataset' and
'selectDataset'. The function 'purgeDatasets' removes
all older datasets, apart from the most recent copy of the current one.
None.
If not called from a GUI, no warning is issued upon rewriting the existing dataset.
Vojtěch Janoušek, vojtech.janousek@geology.cz
'peekDataset' 'selectDataset' 'purgeDatasets'
'loadData' 'accessVar'
sampleDataset("sazava")
# stored as sazava in WRCube
assignColVar("MgO","blues")
assign1symb(15)
# store a new copy in the WRCube
pokeDataset("coloured sazava",overwrite.warn=FALSE)
data(swiss)
accessVar("swiss")
# stored as swiss in WRCube
peekDataset("sazava")
binary("SiO2","Ba")
peekDataset("coloured sazava")
binary("SiO2","Ba")
peekDataset("swiss")
binary("Catholic","Education",pch=15,col="darkgreen")